import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { registerMicroApps, start } from 'qiankun';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
Vue.config.productionTip = false
registerMicroApps([
  {
    name: 'reactApp', // app name registered
    entry: process.env.NODE_ENV==='production'?'https://wchaowei.gitee.io/qiankun-react/':'://localhost:8100',
    container: '#react',
    activeRule: '/react',
  },
  {
    name: 'vueApp',  //名字需要和子应用library一致
    entry: process.env.NODE_ENV==='production'?'https://wchaowei.gitee.io/qiankun-vue/':'://localhost:9100',
    container: '#vue',
    activeRule: '/vue',
    props:{
      a:123
    }
  },
]);
start()
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
